package com.cj.bigfileupload.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName: WebUploadConfigParam <br/>
 * Function: 本地存放文件信息 <br/>
 * date: 2018/05/08 15:42 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
@Component
public class WebUploadConfigParam {

    @Value("${autodeploy.location.path:./uploads}")
    private String locationFilePath;

    /**
     * 这个必须与前端设定的值一致
     */
    @Value("${autodeploy.location.chunksize}")
    private long chunkSize;

    public String getLocationFilePath() {
        return locationFilePath;
    }

    public void setLocationFilePath(String locationFilePath) {
        this.locationFilePath = locationFilePath;
    }

    public long getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(long chunkSize) {
        this.chunkSize = chunkSize;
    }
}
